package com.yangzihao.user.mapper;

import com.yangzihao.user.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {
    
    @Select("select * from tb_user where id = #{id}")
    User findById(@Param("id") Long id);

    @Update("update tb_user set username='等等' where id=#{id}")
    Integer updateById(@Param("id") Long id);
}